package com.bjtu.boatmq.common.log;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.text.SimpleDateFormat;
import java.util.Date;



public class Log {

    private static Logger logger = LoggerFactory.getLogger(Log.class);


    public  void writeDebug(String info) {
        logger.debug(info);
    }

    public  void writeInfo(String info) {
        logger.info(info);
    }

    public  void writeError(String info) {
        logger.error(info);
    }


    private static String getDate() {
        Date date = new Date();
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
        String result = format.format(date);
        return result;
    }
}
